在视图层index.php展示代码中加入
1 [2 'attribute' => 'file',//字段名3 'format' => 'raw',4 'value' => function($model){5 return '';6 }7 ]
attribute为字段名
$model->file为你数据库中的路径本文共 237 字,大约阅读时间需要 1 分钟。
在视图层index.php展示代码中加入
1 [2 'attribute' => 'file',//字段名3 'format' => 'raw',4 'value' => function($model){5 return '';6 }7 ]
attribute为字段名
$model->file为你数据库中的路径转载于:https://www.cnblogs.com/BrokenHeart/p/10614635.html